package server.views.servermngpanel;

import java.awt.BorderLayout;

import javax.swing.JPanel;
import javax.swing.border.TitledBorder;

import server.views.ServerMain;
import server.views.servermngpanel.toppanel.TopPanel;

/**
 * 服务器端在线用户显示管理面板
 * @author solomon
 *
 */
public class ServerMngPanel extends JPanel{

	private static final long serialVersionUID = 1L;

	private TopPanel topPanel;		// 上部的面板
	
	private TablePanel tablePanel;	//下部面板
	
	public ServerMngPanel(ServerMain f){
		this.setLayout(new BorderLayout());
		
		topPanel=new TopPanel(f);
		tablePanel=new TablePanel(f);
		tablePanel.setBorder(new TitledBorder("在线用户"));

		this.add(topPanel,BorderLayout.NORTH);
		this.add(tablePanel,BorderLayout.CENTER);
	}
	public TablePanel getTablePanel() {
		return tablePanel;
	}
	public void setTablePanel(TablePanel tablePanel) {
		this.tablePanel = tablePanel;
	}
	public TopPanel getTopPanel() {
		return topPanel;
	}
	public void setTopPanel(TopPanel topPanel) {
		this.topPanel = topPanel;
	}
	
}
